package com.niiwoo.civet.account.dao.mapper;

import com.niiwoo.civet.account.dao.entity.ProjectInvestCustodyOrder;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

public interface ProjectInvestCustodyOrderMapperExt extends ProjectInvestCustodyOrderMapper{

    ProjectInvestCustodyOrder selectByRequestNo(@Param("requestNo") String requestNo);

    ProjectInvestCustodyOrder selectByPrimaryKeyForUpdate(@Param("id") Long id);

	ProjectInvestCustodyOrder selectByInvestOrderIdAndType(@Param("investOrderId") Long investOrderId, @Param("type") Byte type);
	
	List<ProjectInvestCustodyOrder> queryProjectInvestCustodyOrderListByInvestOrderIdSet(@Param("investOrderIdSet") Set<Long> investOrderIdSet);
	
	List<ProjectInvestCustodyOrder> queryProjectInvestCustodyOrderListByRequestNoList(@Param("requestNoList") List<String> requestNoList);
	
	List<ProjectInvestCustodyOrder> subPackageInvestOrder(@Param("projectPackageOrderId")Long projectPackageOrderId, @Param("type")Byte type);
}